home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / magazine / rdrm32.zip / SEND.BAT < prev    next >
DOS Batch File  |  1994-08-04  |  1KB  |  46 lines

  1. @echo off
  2. rem ------------------------------------------------------------------------
  3. rem All Exhibit A doors pass these parameters to SEND.BAT
  4. rem %1 = com port number
  5. rem %2 = computer to modem BPS rate (locked DTE rate)
  6. rem %3 = full drive\path\filename of file(s) to be sent
  7. rem %4 = modem to caller BPS rate   (connect baud rate)
  8. rem %5 = letter of protocol chosen
  9. rem %6 = IRQ for com ports other than 1 or 2 (DSZ portx option)
  10. rem %7 = base address for com ports other than 1 or 2 (DSZ portx option)
  11. rem ------------------------------------------------------------------------
  12. rem  If using non-standard COM ports (COM ports other than 1 or 2), replace
  13. rem  port %1 in each line below with portx %7,%6 (note comma between %7,%6).
  14. rem ------------------------------------------------------------------------
  15. rem  Note the difference in parameters %2 and %4.  %2 should be used when
  16. rem  the locked baud info is needed, typically with FOSSIL protocols.
  17. rem ------------------------------------------------------------------------
  18. if "%5" == "X" goto :Xmodem
  19. if "%5" == "C" goto :Xmodem
  20. if "%5" == "1" goto :1Kxmodem
  21. if "%5" == "Y" goto :Ymodem
  22. if "%5" == "G" goto :YmodemG
  23. if "%5" == "Z" goto :Zmodem
  24. goto :end
  25.  
  26. :Xmodem
  27. DSZ port %1 pB4096 sx %3
  28. goto :end
  29.  
  30. :1Kxmodem
  31. DSZ port %1 pB4096 sx -k %3
  32. goto :end
  33.  
  34. :Ymodem
  35. DSZ port %1 pB4096 sb -k %3
  36. goto :end
  37.  
  38. :YmodemG
  39. DSZ port %1 pB4096 sb -k %3
  40. goto :end
  41.  
  42. :Zmodem
  43. DSZ port %1 pB4096 sz %3
  44.  
  45. :end
  46.